package com.example.util;

import java.lang.management.ManagementFactory;

public class SystemUtil {
	
	public static String getPid()
	{
		String name = ManagementFactory.getRuntimeMXBean().getName();  
		String pid = name.split("@")[0];  
		System.out.println("Pid is:" +pid);  
		return pid;
	}
}
